package com.ruoyi.lease.domain;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 租约管理对象 tb_lease
 *
 * @author ruoyi
 * @date 2024-10-15
 */
public class TbLease extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 租约id */
    private Long leaseId;

    /** 房屋id */
    @Excel(name = "房屋id")
    private Long houseId;

    /** 租客id */
    @Excel(name = "租客id")
    private Long tenantId;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date overTime;

    /** 合同文件 */
    @Excel(name = "合同文件")
    private String contractDocuments;

    /** 实际租金 */
    @Excel(name = "实际租金")
    private Long actualRent;

    /** 押金 */
    @Excel(name = "押金")
    private Long deposit;

    /** 租约方式 */
    @Excel(name = "租约方式")
    private String leaseMethod;

    /** 公寓名称 */
    @Excel(name = "公寓名称")
    private String apartmentName;

    /** 门牌号 */
    @Excel(name = "门牌号")
    private String doorplate;

    /** 租客名称 */
    @Excel(name = "租客名称")
    private String tenantName;

    public void setLeaseId(Long leaseId)
    {
        this.leaseId = leaseId;
    }

    public Long getLeaseId()
    {
        return leaseId;
    }
    public void setHouseId(Long houseId)
    {
        this.houseId = houseId;
    }

    public Long getHouseId()
    {
        return houseId;
    }
    public void setTenantId(Long tenantId)
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId()
    {
        return tenantId;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setOverTime(Date overTime)
    {
        this.overTime = overTime;
    }

    public Date getOverTime()
    {
        return overTime;
    }
    public void setContractDocuments(String contractDocuments)
    {
        this.contractDocuments = contractDocuments;
    }

    public String getContractDocuments()
    {
        return contractDocuments;
    }
    public void setActualRent(Long actualRent)
    {
        this.actualRent = actualRent;
    }

    public Long getActualRent()
    {
        return actualRent;
    }
    public void setDeposit(Long deposit)
    {
        this.deposit = deposit;
    }

    public Long getDeposit()
    {
        return deposit;
    }
    public void setLeaseMethod(String leaseMethod)
    {
        this.leaseMethod = leaseMethod;
    }

    public String getLeaseMethod()
    {
        return leaseMethod;
    }

    public String getApartmentName()
    {
        return apartmentName;
    }

    public void setApartmentName(String apartmentName)
    {
        this.apartmentName = apartmentName;
    }

    public String getDoorplate()
    {
        return doorplate;
    }

    public void setDoorplate(String doorplate)
    {
        this.doorplate = doorplate;
    }

    public String getTenantName()
    {
        return tenantName;
    }

    public void setTenantName(String tenantName)
    {
        this.tenantName = tenantName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("leaseId", getLeaseId())
                .append("houseId", getHouseId())
                .append("tenantId", getTenantId())
                .append("startTime", getStartTime())
                .append("overTime", getOverTime())
                .append("contractDocuments", getContractDocuments())
                .append("actualRent", getActualRent())
                .append("deposit", getDeposit())
                .append("leaseMethod", getLeaseMethod())
                .append("apartmentName", getApartmentName())
                .append("doorplate", getDoorplate())
                .append("tenantName", getTenantName())
                .toString();
    }
}
